package cn.cvs.test;

import cn.SpringDemo.HelloSpring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testHelloSpring {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("a.xml");
        HelloSpring helloSpring= (HelloSpring) context.getBean("helloSpring");
        helloSpring.print();
    }
}
